package cn.lili.modules.search.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 问题ES详情
 *
 * @author LiLang
 * @since 2022/09/22
 */
@Data
@NoArgsConstructor
public class EsQuestionDetail {

    @Id
    private Integer id;

    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_max_word")
    private String content;

//    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    @Field(type = FieldType.Text)
    private String createUserName;

//    @Field(type = FieldType.Text)
//    private String createUserHead;

    @Field(type = FieldType.Long)
    private Long userId;

}